package com.arvato.minipro.bean.bean_vo.mall;

import java.util.Date;

import com.arvato.common.util.ContantFinalUtil;
import com.arvato.common.util.DateFormatUtil;

/**
 * 
 * @author: smallking
 * 
 * @Descibe:广告牌 返给前台json对应的实体类
 * 
 * @Date: 2018年4月24日  下午2:42:26
 */
public class EcBillboardVo {
	/**
	 * 主键ID
	 */
    private String billboardId;
    /**
     * 广告牌名称
     */
    private String billboardName;
    /**
     * 广告牌对应的图片的路径
     */
    private String imgPath;
    /**
     * 备注
     */
    private String note;
    /**
     * 广告牌的排序码
     */
    private Integer sortCode;
    /**
     * 广告牌的状态
     */
    private Integer status;
    /**
     * 创建日期
     */
    private Date createDate;
    /**
     * 广告位图片在界面的预览路径
     */
    @SuppressWarnings("unused")
	private String imgViewPath;
    
    public String getBillboardId() {
        return billboardId;
    }

    public void setBillboardId(String billboardId) {
        this.billboardId = billboardId == null ? null : billboardId.trim();
    }

    public String getBillboardName() {
        return billboardName;
    }

    public void setBillboardName(String billboardName) {
        this.billboardName = billboardName == null ? null : billboardName.trim();
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath == null ? null : imgPath.trim();
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note == null ? null : note.trim();
    }

    public Integer getSortCode() {
        return sortCode;
    }

    public void setSortCode(Integer sortCode) {
        this.sortCode = sortCode;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreateDate() {
        return DateFormatUtil.date2Str(createDate);
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

	public String getImgViewPath() {
		try {
			return ContantFinalUtil.IMG_PATH + "?fileName=" + imgPath;
		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}
	}

	public void setImgViewPath(String imgViewPath) {
		this.imgViewPath = imgViewPath;
	}
    
}